/*
* @Author: 窦子滨<zibin_5257@163.com>
* @Date: 2019-05-08 10:18
 */
package main

import "lanfengye/base/common"

type config struct {
	Control struct {
		Port string
	}
	Server struct {
		Port string
	}
	Mapping struct {
		Switch bool
		File   string
	}
	Manual struct {
		Switch bool
		File   string
	}
	Log struct{
		File string
	}
	Etcd struct{
		Switch bool
		File string
	}
}

var Config *config=newConfig()

func newConfig() *config {
	return &config{
		Control: struct{ Port string }{Port: "8001"},
		Server:  struct{ Port string }{Port: "8000"},
		Mapping: struct {
			Switch bool
			File   string
		}{Switch: true, File: "hprose_mapping.txt"},
		Manual: struct {
			Switch bool
			File   string
		}{Switch: true, File: "hprose_manual_list.txt"},
		Log: struct{ File string }{File: common.Path + "logs" + common.OSSEP + "logProxy.log"},
		Etcd: struct {
			Switch bool
			File   string
		}{Switch:true , File:"ectd_server.txt" },
	}
}


